package fragments;






import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;



import com.game.demo409.demo409.R;

import adapters.FindingFragmentAdapter;
import widget.TabIndicator;


/**
 * Created by Administrator on 2014/12/1.
 */
public class FindingFragment extends Fragment{


    private TabIndicator indicator ;
    private ViewPager pager;
    private FindingFragmentAdapter findingpagerAdapter;



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        View finding = inflater.inflate(R.layout.finding_fragment, container, false);

        pager = (ViewPager)finding.findViewById(R.id.finding_pager);
        indicator = (TabIndicator)finding.findViewById(R.id.finding_tabHost);
        findingpagerAdapter = new FindingFragmentAdapter(getChildFragmentManager());
        pager.setAdapter(findingpagerAdapter);
        indicator.setViewPager(pager);


        return  finding;
    }

}
